package com.shanyi.sendmsg.biz;

import com.shanyi.sendmsg.dto.entity.UserEntity;
import com.shanyi.sendmsg.mapper.UserMapper;
import com.shanyi.sendmsg.tool.UUIDTool;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;

@Service
public class UserBiz {
    
    @Resource
    private UserMapper userMapper;
    
    public String getUserInfo() {

        UserEntity entity = new UserEntity();
        entity.setUserCode(UUIDTool.get32UUID());
        
        entity.setUserName("test");
        entity.setPassword("test");
        entity.setDeleted(0);
        entity.setNickName("test");
        entity.setModifyTime(new Date());

        userMapper.insert(entity);
        return "success";
    }
}
